/* =========================
   ARQUIVO: components.css
========================= */

/* BOTÃO */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #0b0e12;
  font-weight: 800;
  padding: 12px 18px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(122, 162, 255, 0.25);
  transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover,
.btn:focus {
  filter: brightness(1.08);
  outline: none;
  text-decoration: none;
}

/* CARD */
.card {
  background: linear-gradient(180deg, #0f141b 0%, #0b0e12 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
  min-height: 160px;
  display: grid;
  align-content: start;
  gap: 8px;
}
.card h3 { margin: 0; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ÍCONE */
.icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(127, 160, 255, 0.15);
  border: 1px solid rgba(127, 160, 255, 0.25);
  font-size: 24px;
}

/* CONTAINER DE VÍDEO */
.video-container {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.video-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* POPUP */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.popup {
  background: var(--bg-dark);
  padding: 25px;
  border-radius: 12px;
  max-width: 350px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.popup h3 { margin-top: 0; color: var(--brand); }
.popup p { color: var(--muted); font-size: 0.95rem; margin-bottom: 20px; }
.popup button {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #0b0e12;
  font-weight: bold;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 80px;
}
.popup button:hover { filter: brightness(1.08); }
.popup button.loading { cursor: wait; opacity: 0.85; }

/* SPINNER (LOADING) */
.spinner {
  border: 3px solid rgba(255,255,255,0.3);
  border-top: 3px solid #0b0e12;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 0.8s linear infinite;
}